package com.situ.hotel.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.situ.hotel.entity.User;

public interface UserService {
	int add(User user) throws Exception;

	int edit(User user) throws Exception;

	List<User> search(User user);

	PageInfo searchByPage(Integer page, Integer limit, User user);

	User getById(Integer userId);

	User login(User user) throws Exception;
}
